#/usr/bin/python
#-*-<coding=UTF-8>-*-

"""
本例展示了
"""

import wx
import wx.html

class Frame(wx.Frame):
    
    def __init__(self):
        wx.Frame.__init__(self,parent=None,id=-1,title="",pos=wx.DefaultPosition,size=wx.DefaultSize)
        html = wx.html.HtmlWindow(self,style=wx.html.HW_SCROLLBAR_AUTO)
        if "gtk2" in wx.PlatformInfo:
            html.SetStandardFonts()

        html.SetPage("Here si some <b>rormatted</b><i><u>text</u></i><br>"
                "loaded from a <font color=\"red\">string</font>")
        wx.CallAfter(html.LoadPage,"http://www.baidu.com")
        
if __name__ == "__main__":
    app = wx.PySimpleApp()
    frame = Frame()
    frame.Show()
    app.MainLoop()
